@extends('admin.layout.index')

@section('content')
@if (count($errors) > 0)
	<!-- 错误提醒 -->
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span>状态修改</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    	<form class="mws-form" action="/admin/order/update" method="post">
                    	{{ csrf_field() }}
                    		@foreach($data as $kk => $vv )
                              <div class="mws-form-row">
                                        <label class="mws-form-label">付款状态</label>
                                        <div class="mws-form-item">
                                        
                                             <select class="large" name="state">
                                                <!-- <option value="0">请选择</option> -->
                                                <!-- 遍历传过来的分类名称 -->
                                                  <option value="0" @if($vv['state'] == 0) selected @endif>未付款</option>
                                                  <option value="1" @if($vv['state'] == 1) selected @endif>已付款</option>
                                             </select>
                                        </div>
                                   </div>
                                   <div class="mws-form-row">
                                        <label class="mws-form-label">货物状态</label>
                                        <div class="mws-form-item">
                                             <select class="large" name="payway"> 
                                                <!-- 遍历传过来的分类名称 -->
                                                  <option value="0" @if($vv['payway'] == 0) selected @endif>未发货</option>
                                                  <option value="1" @if($vv['payway'] == 1) selected @endif>已发货</option>
                                                  <option value="2" @if($vv['payway'] == 2) selected @endif>已收货</option>
                                             </select>
                                        </div>
                                   </div>
                    		@endforeach
                    		<div class="mws-button-row">
                    		<input type="hidden" name="id" value="{{$id}}">
                    			<input value="提交" class="btn btn-danger" type="submit">
                    			
                    		</div>
                            
                    	</form>
                    </div> 
                    </div>   	


@endsection